/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: 
 * License Type: Evaluation
 */
package orm;

import java.io.Serializable;
public class Tan_subsector implements Serializable {
	public Tan_subsector() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_TAN_SUBSECTOR_TAN_ANOTACION) {
			return ORM_tan_anotacion;
		}
		
		return null;
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_TAN_SUBSECTOR_CU_ID_CURSO) {
			this.cu_id_curso = (orm.Tan_curso) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int su_id_subsector;
	
	private String su_nombre;
	
	private orm.Tan_curso cu_id_curso;
	
	private java.util.Set ORM_tan_anotacion = new java.util.HashSet();
	
	private void setSu_id_subsector(int value) {
		this.su_id_subsector = value;
	}
	
	public int getSu_id_subsector() {
		return su_id_subsector;
	}
	
	public int getORMID() {
		return getSu_id_subsector();
	}
	
	public void setSu_nombre(String value) {
		this.su_nombre = value;
	}
	
	public String getSu_nombre() {
		return su_nombre;
	}
	
	public void setCu_id_curso(orm.Tan_curso value) {
		if (cu_id_curso != null) {
			cu_id_curso.tan_subsector.remove(this);
		}
		if (value != null) {
			value.tan_subsector.add(this);
		}
	}
	
	public orm.Tan_curso getCu_id_curso() {
		return cu_id_curso;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Cu_id_curso(orm.Tan_curso value) {
		this.cu_id_curso = value;
	}
	
	private orm.Tan_curso getORM_Cu_id_curso() {
		return cu_id_curso;
	}
	
	private void setORM_Tan_anotacion(java.util.Set value) {
		this.ORM_tan_anotacion = value;
	}
	
	private java.util.Set getORM_Tan_anotacion() {
		return ORM_tan_anotacion;
	}
	
	public final orm.Tan_anotacionSetCollection tan_anotacion = new orm.Tan_anotacionSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_TAN_SUBSECTOR_TAN_ANOTACION, orm.ORMConstants.KEY_TAN_ANOTACION_SU_ID_SUBSECTOR, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getSu_id_subsector());
	}
	
}
